$(function () {
    var orderSn = CoreUtil.getQueryVariable("orderSn");

    CoreUtil.sendPost("/api/order/getOrder",{"orderSn": orderSn},function (res) {
       $("#paymoney").html(res.data.orderMoney + "元");
       $("#paymentMoney").html("银行卡支付 " + res.data.orderMoney + " 元");
    });

    $("#paymentMoney").click(function () {
        CoreUtil.sendPost("/api/pay/payment",{"orderSn": orderSn, "orderStatus" : "2"},function (res) {
            location.href="pay-ok.html?orderSn=" + orderSn;
        });
    });
})
